package com.softWang.system.controller.vo.systemDepts;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class SystemDeptsEditParam {
    @ApiModelProperty(value = "部门主键id")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "部门名，最大长度为60位")
    @NotBlank(message = "dname不能为空")
    @Size(max = 60, message = "dname最大长度为60位")
    private String dname;

    @ApiModelProperty(value = "父id")
    @NotNull(message = "pid不能为空")
    private Long pid;

}